package com.imooc.business;

import com.imooc.business.domain.Rule;
import com.imooc.module.collect.request.AddRuleRequest;

/**
 * @Author Tim
 * @Description:
 * @Version 1.0
 */
public interface RuleBusiness {
    /**
     * 查询应用规则模型
      * @param businessId
     * @param ruleType
     * @return
     */
    Rule getRule(String businessId, String ruleType);

    /**
     * 添加业务规则
     * @param request
     * @return
     */
    Boolean addRule(AddRuleRequest request);
}
